﻿@model MvcGraduate.Models.Students

@{
    ViewBag.Title = "HomeIndex";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section Scripts {
    <script src="~/Scripts/jquery-ui-1.8.24.min.js"></script>
    <script>
        function SubmitQuestion() {
            $.post(
                "@Url.Action("SubmitQuestion", "Home")",
                    { "info": $('#zhuye_TiWenKuang').val() },
                    function (data) {
                        if (data == "True") {
                            $('#zhuye_TiWenKuang').val("");
                            alert("保存成功");
                        }else
                            alert("保存失败");
                    });
        }
        $('.title_navigate a:eq(0) div').addClass('logo_left_title_select');
        //填充分享的文章
        $.post(
            "@Url.Action("GetMyArt", "Home")",
            function (data) {
                $('#JS_myArtDiv').html(data);
        });
        //课程表
        $.post(
            "@Url.Action("GetSchedule", "Home")",
            function (data) {
                $('#JS_Home_TimeTable_Div').html(data);
            });
        $.post(
            "@Url.Action("GetShareArt", "Home")",
            function (data) {
                $('#JS_ShareArtDiv').html(data);
            });
        $.post(
            "@Url.Action("GetNotify", "Home")",
            function (data) {
                $('#JS_NotifyDiv').html(data);
            });
        $.post(
            "@Url.Action("GetQuestion", "Home")",
            function (data) {
                $('#JS_QuestionDiv').html(data);
            });
        $.post(
            "@Url.Action("GetMyImages", "Home")",
            function (data) {
                $('#JS_MyImageDiv').html(data);
            });
        $.post(
            "@Url.Action("GetShareImages", "Home")",
            function (data) {
                $('#JS_ShareImageDiv').html(data);
            });
        $.post(
            "@Url.Action("GetHonour", "Home")",
            function (data) {
                $('#JS_DashiDiv').html(data);
            });
        $.post(
            "@Url.Action("GetTeacherImages", "Home")",
            function (data) {
                $('#JS_TeacherHomeDiv').html(data);
            });
        $.post(
            "@Url.Action("GetBanWei", "Home")",
            function (data) {
                $('#JS_BanWeiHomeDiv').html(data);
            });
    </script>
}
<div id="zhuye" style=" height: 1225px;">
    <div class="common_top">
        <ul>
            <li><img src="~/Images/sys_message_ico.png" /></li>
            <li class="no_news"><a href="#">无信息</a></li>
            <li><img src="~/Images/sys_message_ico.png" /></li>
            <li class="no_news"><a href="#">无信息</a></li>
            <li><img src="~/Images/sys_message_ico.png" /></li>
            <li class="no_news"><a href="#">无信息</a></li>
            <li class="gengduo"><a href="#">更多>></a></li>
        </ul>
    </div>
    <div id="Js_StudentInfo" style="opacity:0">

    </div>
    <div class="zhuye_centre">
        <div class="zhuye_centre_left">
            <div class="zhuye_centre_left_1">
                <div class="wenzhang">
                    <a href="@Url.Action("Index", "Interaction", new { RedirectStr = "RedirectToArticle" })"><img src="~/Images/article.png" id="article" /></a>
                    <ul>
                        <li><a href="@Url.Action("Index", "Interaction", new { RedirectStr = "RedirectToArticle" })">我的文章</a></li>
                        <li class="number"><a href="@Url.Action("Index", "Interaction", new { RedirectStr = "RedirectToArticle" })">@ViewBag.AricleCount </a></li>
                    </ul>
                </div>
                <div class="zhaopian">
                    <a href="@Url.Action("Index", "Interaction")"><img src="~/Images/my_photo.png" id="article" /></a>
                    <ul>
                        <li><a href="@Url.Action("Index", "Interaction")">我的照片</a></li>
                        <li class="number"><a href="@Url.Action("Index", "Interaction")">@ViewBag.ImageCount</a></li>
                    </ul>
                </div>
                <div class="xiaoxi">
                    <a href="@Url.Action("Index", "NotifyNews")"><img src="~/Images/message.png" id="article" /></a>
                    <ul>
                        <li><a href="@Url.Action("Index", "NotifyNews")">消息</a></li>
                        <li class="number"><a href="@Url.Action("Index", "NotifyNews")">@ViewBag.NotifyCount</a></li>
                    </ul>
                    <div id="JS_NotifyDiv"></div>
                </div>
                <div class="tiwen">
                    <a href="@Url.Action("Index", "Interaction", new { RedirectStr = "RedirectToQuestion" })"><img src="~/Images/ask.png" id="article" /></a>
                    <ul>
                        <li><a href="@Url.Action("Index", "Interaction", new { RedirectStr = "RedirectToQuestion" })">提问</a></li>
                        <li class="number"><a href="@Url.Action("Index", "Interaction", new { RedirectStr = "RedirectToQuestion" })">@ViewBag.QuestionCount</a></li>
                    </ul>
                </div>
                <div class="zuoye">
                    <a href="@Url.Action("Index", "Study")"><img src="~/Images/homework.png" id="article" /></a>
                    <ul>
                        <li><a href="@Url.Action("Index", "Study")">电子作业</a></li>
                        <li class="number"><a href="@Url.Action("Index", "Study")">@ViewBag.HomeWorkCount</a></li>
                    </ul>
                </div>
                <div class="ziliao">
                    <a href="@Url.Action("Index", "Grade", new {RedirectStr="RedirectToMaterial" })"><img src="~/Images/kc_ziliao.png" id="article" /></a>
                    <ul>
                        <li><a href="@Url.Action("Index", "Grade", new {RedirectStr="RedirectToMaterial" })">课程资料</a></li>
                        <li class="number"><a href="@Url.Action("Index", "Grade", new {RedirectStr="RedirectToMaterial" })">@ViewBag.MaterialCount</a></li>
                    </ul>
                </div>
            </div>
            <div class="zhuye_centre_left_2">
                <img src="~/Images/gonggao.png" width="148" height="37" id="menu_bg" />
                <ul>
                    <li><a href="@Url.Action("Index", "NotifyNews")">更多>></a></li>
                </ul>
            </div>
            <div class="zhuye_centre_left_3">
                <img src="~/Images/xiaoxi.png" width="154" height="49" id="menu_bg" />
                <ul>
                    <li><a href="@Url.Action("Index", "NotifyNews")">更多>></a></li>
                </ul>
            </div>
            <div class="zhuye_centre_left_4">
                <div><img src="~/Images/dashiji.png" width="150" height="50" id="menu_bg" /></div>
                <div id="JS_DashiDiv"></div>
            </div>
        </div>
        <div id="zhuye_centre_centre">
            <div id="zhuye_centre_centre_1">
                <ul class="title">
                    <li><img src="~/Images/title_bg1.png" /></li>
                    <li class="current"><a href="@Url.Action("Index", "Interaction", new { RedirectStr = "RedirectToArticle" })">我的文章</a></li>
                    <li><img src="~/Images/title_bg1.png" /></li>
                    <li class="current"><a href="@Url.Action("Index", "Interaction", new { RedirectStr = "RedirectToShareArticle" })">分享文章</a></li>
                    <li>
                        <div class="write_article_btn"><a href="@Url.Action("GetAddArticle", "Home")">写文章</a></div>
                    </li>
                </ul>
                <div id="JS_myArtDiv"></div>
                <div id="JS_ShareArtDiv" style="display:none"></div>
            </div>

            <div id="zhuye_centre_centre_2">
                <ul class="title">
                    <li><img src="~/Images/title_bg1.png" /></li>
                    <li class="current"><a href="@Url.Action("Index", "Interaction", new { RedirectStr = "RedirectToImage" })">我的照片</a></li>
                    <li><img src="~/Images/title_bg1.png" /></li>
                    <li class="current"><a href="@Url.Action("Index", "Interaction", new { RedirectStr = "RedirectToShareImage" })">分享照片</a></li>
                </ul>
                <div id="JS_MyImageDiv"></div>
                <div id="JS_ShareImageDiv" style="display:none"></div>
            </div>
        </div>
        <div class="zhuye_centre_right">
            <div class="zhuye_centre_right_1">
                <div><img src="~/Images/kebiao.png" width="150" height="49" id="menu_bg" /></div>
                <div id="JS_Home_TimeTable_Div"></div>
            </div>
            @*教师*@
            <div class="zhuye_centre_right_2">
                <div style="width:100%;height:80px">
                    <img src="~/Images/teacher.png" width="155" height="46" id="menu_bg" />
                    <ul>
                        <li><a href="@Url.Action("Index", "Grade", new { RedirectStr = "RedirectToTeacher" })">更多>></a></li>
                    </ul>
                </div>
                <div id="JS_TeacherHomeDiv"></div>
            </div>
            @*班委*@
            <div class="zhuye_centre_right_3">
                <div style="width:100%;height:80px">
                    <img src="~/Images/banwei.png" width="152" height="49" id="menu_bg" />
                    <ul>
                        <li><a href="@Url.Action("Index","Grade")">更多>></a></li>
                    </ul>
                </div>
                <div id="JS_BanWeiHomeDiv"></div>
            </div>
            <div class="zhuye_centre_right_4">
                <div class="tiwen_2">
                    <img src="Images/tiwen.png" width="153" height="49" />
                </div>
                <div class="zhuye_centre_right_4_tiwen">
                    <textarea class="zhuye_centre_right_4_tiwen_kuang" id="zhuye_TiWenKuang"></textarea>
                    <a href="javascript:;"><div class="zhuye_centre_right_4_tiwen_2" onclick="SubmitQuestion()">提问</div></a>
                    <div id="JS_QuestionDiv"></div>
                </div>
            </div>
        </div>
    </div>
</div>



